package br.com.wssa.smmb.controller;

import java.util.Map;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Classe SmmbController.
 * @author ssilva
 */
@Controller
public class SmmbController {
	
	/**
	 * dashboard.
	 * @param model Map<String, Object>
	 * @return String
	 */
	@RequestMapping("/smmb")
	public String smmb(Map<String, Object> model, HttpSession sessao) {
		if (sessao.getAttribute("SPRING_SECURITY_CONTEXT") == null) {
			return "erro-401";
		} else {
			return "dashboard";
		}
	}
}
